<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>productList</title>
</head>
<body>
<div th:include="back/common/css_js :: main"></div>
<div class="container">
    <div class="mt-3 mb-3">
        <a th:href="@{/admin/addGuidePage}" class="btn btn-success">添加</a>
    </div>
    <table class="table">
        <tr>
            <th>编号</th>
            <th>用户名</th>
            <th>姓名</th>
            <th>负责景点</th>
            <th>联系电话</th>
            <th>操作</th>
        </tr>
        <tr th:each="one:${guideList}">
            <td th:text="${one.id}"/>
            <td th:text="${one.username}"/>
            <td th:text="${one.name}"/>
            <td th:text="${one.duty}"/>
            <td th:text="${one.number}"/>
            <td><a th:href="@{'/admin/updateGuidePage/'+${one.id}}" class="btn btn-primary btn-sm">修改</a>
                <a th:href="@{'/admin/deleteGuide/'+${one.username}}" class="btn btn-danger btn-sm">删除</a>
            </td>
        </tr>
    </table>
</div>
</body>
</html>